//获取预警节点设置记录

import request from '@/utils/request'

export function getlist(listquery) {
    return request({
        url: '/api/warning/getlist',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: 
         listquery
    })
}
export function add(data) {
    return request({
        url: '/api/warning/add',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:data,
    })
}
export function edit(data) {
    return request({
        url: '/api/warning/edit',
        method: 'post',
        headers: {
            "Content-Type": "application/json" 
        },
        data:data,
    })
}
export function del(id){
    return request({
        url: '/api/warning/del',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:id,
    })
}
export function flashwarningdata() {
    return request({
        url: '/api/villageprogress/flashwarningdata',
        method: 'get',
     
    })
}